﻿namespace OrganizingStraightLineCode
{
    using System;

    public class Vegetable
    {
        public Vegetable(VegetabeType type, decimal weightInGrams)
        {
            this.Type = type;
            this.WeightInGrams = weightInGrams;
            this.IsCut = false;
            this.IsPeeled = false;
        }

        public VegetabeType Type { get; private set; }

        public decimal WeightInGrams { get; private set; }

        public bool IsCut { get; private set; }

        public bool IsPeeled { get; private set; }

        public void Cut()
        {
            this.IsCut = true;
        }

        public void Peel()
        {
            this.IsPeeled = true;
        }
    }
}